+Sat Jun 23 22:03:20 2001 Tim Janik <timj@gtk.org>
+
+ * gdk/x11/gdkimage-x11.c (gdk_image_init): disabled g_free (image)
+ calls, as GdkImage is an object. these should be g_obejct_unref()
+ instead but that won't work because of the g_error() statement
+ in gdk_x11_image_destroy(). so for now, i did s/g_free/LEAK_IMAGE/
+ to spot these places.
+
Sat Jun 23 10:27:53 2001 Owen Taylor <otaylor@redhat.com>
* modules/input/gtkimcontextxim.c: Fixup some problems with
+Sat Jun 23 22:03:20 2001 Tim Janik <timj@gtk.org>
+
+ * gdk/x11/gdkimage-x11.c (gdk_image_init): disabled g_free (image)
+ calls, as GdkImage is an object. these should be g_obejct_unref()
+ instead but that won't work because of the g_error() statement
+ in gdk_x11_image_destroy(). so for now, i did s/g_free/LEAK_IMAGE/
+ to spot these places.
+
Sat Jun 23 10:27:53 2001 Owen Taylor <otaylor@redhat.com>
* modules/input/gtkimcontextxim.c: Fixup some problems with
+Sat Jun 23 22:03:20 2001 Tim Janik <timj@gtk.org>
+
+ * gdk/x11/gdkimage-x11.c (gdk_image_init): disabled g_free (image)
+ calls, as GdkImage is an object. these should be g_obejct_unref()
+ instead but that won't work because of the g_error() statement
+ in gdk_x11_image_destroy(). so for now, i did s/g_free/LEAK_IMAGE/
+ to spot these places.
+
Sat Jun 23 10:27:53 2001 Owen Taylor <otaylor@redhat.com>
* modules/input/gtkimcontextxim.c: Fixup some problems with
+Sat Jun 23 22:03:20 2001 Tim Janik <timj@gtk.org>
+
+ * gdk/x11/gdkimage-x11.c (gdk_image_init): disabled g_free (image)
+ calls, as GdkImage is an object. these should be g_obejct_unref()
+ instead but that won't work because of the g_error() statement
+ in gdk_x11_image_destroy(). so for now, i did s/g_free/LEAK_IMAGE/
+ to spot these places.
+
Sat Jun 23 10:27:53 2001 Owen Taylor <otaylor@redhat.com>
* modules/input/gtkimcontextxim.c: Fixup some problems with
+Sat Jun 23 22:03:20 2001 Tim Janik <timj@gtk.org>
+
+ * gdk/x11/gdkimage-x11.c (gdk_image_init): disabled g_free (image)
+ calls, as GdkImage is an object. these should be g_obejct_unref()
+ instead but that won't work because of the g_error() statement
+ in gdk_x11_image_destroy(). so for now, i did s/g_free/LEAK_IMAGE/
+ to spot these places.
+
Sat Jun 23 10:27:53 2001 Owen Taylor <otaylor@redhat.com>
* modules/input/gtkimcontextxim.c: Fixup some problems with
+Sat Jun 23 22:03:20 2001 Tim Janik <timj@gtk.org>
+
+ * gdk/x11/gdkimage-x11.c (gdk_image_init): disabled g_free (image)
+ calls, as GdkImage is an object. these should be g_obejct_unref()
+ instead but that won't work because of the g_error() statement
+ in gdk_x11_image_destroy(). so for now, i did s/g_free/LEAK_IMAGE/
+ to spot these places.
+
Sat Jun 23 10:27:53 2001 Owen Taylor <otaylor@redhat.com>
* modules/input/gtkimcontextxim.c: Fixup some problems with
+Sat Jun 23 22:03:20 2001 Tim Janik <timj@gtk.org>
+
+ * gdk/x11/gdkimage-x11.c (gdk_image_init): disabled g_free (image)
+ calls, as GdkImage is an object. these should be g_obejct_unref()
+ instead but that won't work because of the g_error() statement
+ in gdk_x11_image_destroy(). so for now, i did s/g_free/LEAK_IMAGE/
+ to spot these places.
+
Sat Jun 23 10:27:53 2001 Owen Taylor <otaylor@redhat.com>
* modules/input/gtkimcontextxim.c: Fixup some problems with
static GList *image_list = NULL;
static gpointer parent_class = NULL;
-static void gdk_x11_image_destroy (GdkImage *image);
-static void gdk_image_init (GdkImage *image);
-static void gdk_image_class_init (GdkImageClass *klass);
-static void gdk_image_finalize (GObject *object);
+static void gdk_x11_image_destroy (GdkImage *image);
+static void gdk_image_init (GdkImage *image);
+static void gdk_image_class_init (GdkImageClass *klass);
+static void gdk_image_finalize (GObject *object);
#define PRIVATE_DATA(image) ((GdkImagePrivateX11 *) GDK_IMAGE (image)->windowing_data)
+#define LEAK_IMAGE(image) /* FIXME!! this should be g_object_unref */
+
GType
gdk_image_get_type (void)
{
gdk_image_init (GdkImage *image)
{
image->windowing_data = g_new0 (GdkImagePrivateX11, 1);
-
}
static void
{
g_warning ("XShmCreateImage failed");
- g_free (image);
+ LEAK_IMAGE (image);
gdk_use_xshm = False;
return NULL;
}
XDestroyImage (private->ximage);
g_free (private->x_shm_info);
- g_free (image);
+ LEAK_IMAGE (image);
return NULL;
}
shmctl (x_shm_info->shmid, IPC_RMID, 0);
g_free (private->x_shm_info);
- g_free (image);
+ LEAK_IMAGE (image);
/* Failure in shmat is almost certainly permanent. Most likely error is
* EMFILE, which would mean that we've exceeded the per-process
shmctl (x_shm_info->shmid, IPC_RMID, 0);
g_free (private->x_shm_info);
- g_free (image);
+ LEAK_IMAGE (image);
gdk_use_xshm = False;
}
else
{
- g_free (image);
+ LEAK_IMAGE (image);
return NULL;
}
break;
#else /* USE_SHM */
- g_free (image);
+ LEAK_IMAGE (image);
return NULL;
#endif /* USE_SHM */
case GDK_IMAGE_NORMAL: